import m from "./m.js";
let a: number;
a = 77;
let b: string;
console.log(m);

function fn(a: number, b: number) {
  return a + b;
}

function fn2(this: Window) {
  alert(this);
}

let box1 = document.querySelector("#box1");
// box1.addEventListener("click", fn2);// error
/* if (box1 !== null) {
  box1.addEventListener("click", fn2);
} */
box1?.addEventListener("click", fn2);
